import { App } from 'vue'

import { permission } from '@/directives/permission'

import { digitNumber } from '@/directives/digitNumber'

/**
 * 注册全局自定义指令
 * @param app
 */
export function setupDirectives(app: App) {
  // 权限控制指令（演示）
  app.directive('permission', permission)

  app.directive('digitNumber', digitNumber)
}
